<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body> 


 



{template 'header.html'}

 

<div class="container"> 
    <div class="main">  
   			
            
            <ul class="nav nav-tabs">
                <li {if $action==''}class="active"{/if}><a href="?module={$module}">小组</a></li>
                <li {if $action=='latest'}class="active"{/if}><a href="?module={$module}&action=latest">话题</a></li>
            </ul>
                  
         
            <div class="mod">
                <ul class="body group-list">
                   
                 
                  <!--{loop $glist $n $r}-->
                  {php $keywords = explode(',',$r[keywords]);}   
                    <li class="group-item thumbnail"> 
                    
                    
                        <div class="thumb">
                            <a href="{url($r[url])}">
                             <img src="{php echo $r[thumb] ? thumb($r[thumb],72,'72') : thumb('misc/nopic.gif',72,'72')}" width="72" height="72"/>  
                            </a>
                        </div>
                        <div class="desc">
                           <a href="{url($r[url])}">{str_cut($r[title],15)}</a> &nbsp;&nbsp;{rand(30,300)}个成员
                           <p>时间：2012-3-21 0:29:00</p>
                           <div>{str_cut($r[description],36)} <a href="./index.php?module=group&action=join&groupid={$r[groupid]}" rel="nofollow">立即加入</a></div> 
                           
                        </div>
                        
                  </li>
                  <!--{/loop}-->
                </ul>
            </div>
            
            <div class="pagination">{php echo $group->pages;}</div>

    </div>
    
    <div class="aside"> 
        
      	<div class="mod">
        	<div class="well">
                <a class="button" rel="nofollow" href="{url("?module=group&action=create")}"><i class="icon-plus"></i>创建小组</a>
            </div>
        </div>
        
        
        {template 'adwords.html','adwords'}
        
      
        <div class="mod">
        	<div class="head">
            小组分类
            </div>
            <div class="body">
            
            	<ul class="nav nav-tabs nav-stacked">
                    <li><a href="./index.php?module=group&keyword=荆门"><i class="icon-tag"></i>荆门</a></li>
                    <li><a href="./index.php?module=group&keyword=掇刀"><i class="icon-tag"></i>掇刀</a></li>
                    <li><a href="./index.php?module=group&keyword=沙洋"><i class="icon-tag"></i>沙洋</a></li>
                    <li><a href="./index.php?module=group&keyword=沙洋"><i class="icon-tag"></i>京山</a></li>
                    <li><a href="./index.php?module=group&keyword=仙居"><i class="icon-tag"></i>仙居</a></li>
                    <li><a href="./index.php?module=group&keyword=电影"><i class="icon-tag"></i>电影</a></li>
                    <li><a href="./index.php?module=group&keyword=行业"><i class="icon-tag"></i>行业</a></li>
                    <li><a href="./index.php?module=group&keyword=职业"><i class="icon-tag"></i>职业</a></li>
                    <li><a href="./index.php?module=group&keyword=楼盘"><i class="icon-tag"></i>楼盘</a></li>
                    <li><a href="./index.php?module=group&keyword=汽车"><i class="icon-tag"></i>汽车</a></li>
                    <li class="active"><a href="#">...</a></li>
                  </ul>
            	
            	
            </div>
        </div>
        
        <div class="mod">
            <div class="head">搜索小组</div>
            <div class="body">
                <form action="" method="post">
                    <input name="keyword" type="text" value="{if $keyword}{$keyword}{else}请输入关键字{/if}" onFocus="if(this.value=='请输入关键字'){this.value=''}" onBlur="if(this.vlaue==''){this.value='请输入关键字'}"  />
                    <input name="" type="submit" value="搜索" class="button" />
                 </form>
            </div>
        </div>
        
        
        <div class="mod">
            <div class="head">最新小组</div>
            <ul class="body users">
            {get sql="select url,title,thumb from table_group where thumb <> '' order by groupid desc" rows="8"}
            <li>
             <a href="{url($r[url])}" title="{$r[title]}">
             <img src="{php echo $r[thumb] ? thumb($r[thumb],72,'') : thumb('misc/nopic.gif',72,'')}" 
             alt="{$r[title]}"  target="_blank" width="40" height="40"/></a>
             <br/><a href="{url($r[url])}">{str_cut($r[title],15,'')}</a><br/>&nbsp;({rand(100,500)})
            </li>
          {/get}
          </ul>
        </div>
        
      
        
          
    </div>
</div>


{template 'footer.html'}

